package com.cloudsdo.cameratest.dao;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * -----------------------------------------------------------------
 * Copyright (C) 2014-2016, by your company, All rights reserved.
 * -----------------------------------------------------------------
 * File: Student.java
 * Author: win7
 * Version: V100R001C01
 * Create: 2019/7/4 20:37
 * Changes (from 2019/7/4)
 * -----------------------------------------------------------------
 * 2019/7/4 : Create Student.java (win7);
 * -----------------------------------------------------------------
 */
@DatabaseTable(tableName = "table_student")
public class Student {
    @DatabaseField
    private String schoolName;
    @DatabaseField
    private String name;
    @DatabaseField
    private String img;
    @DatabaseField
    private String age;
    @DatabaseField
    private String sex;
    @DatabaseField
    private String className;
    @DatabaseField
    private String nfcCode;
    @DatabaseField
    private String faceCode;

    private boolean check=false;

    public boolean isCheck() {
        return check;
    }

    public void setCheck(boolean check) {
        this.check = check;
    }

    public Student() {
    }

    public Student(String schoolName, String name, String img, String age, String sex, String className, String nfcCode, String faceCode) {
        this.schoolName = schoolName;
        this.name = name;
        this.img = img;
        this.age = age;
        this.sex = sex;
        this.className = className;
        this.nfcCode = nfcCode;
        this.faceCode = faceCode;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getNfcCode() {
        return nfcCode;
    }

    public void setNfcCode(String nfcCode) {
        this.nfcCode = nfcCode;
    }

    public String getFaceCode() {
        return faceCode;
    }

    public void setFaceCode(String faceCode) {
        this.faceCode = faceCode;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", img='" + img + '\'' +
                '}';
    }
}
